package com.powerunion.datacollection.dao;

import java.util.List;
import com.powerunion.datacollection.model.ActivityInstance;
import com.powerunion.datacollection.model.ApproveActivityInstance;

public interface ActivityDao {
	public ApproveActivityInstance getParentActivity(String childId)throws DaoException;
	
	public boolean updateActivityState(int state,String id) throws DaoException;
	
	public boolean updateActivityState4Child(int state,String id)throws DaoException;
	
	public List findAllActivityByProcId(String procId) throws DaoException;
	
	public ActivityInstance getActivityInfoByKey(String id) throws DaoException;
	
	public List getChildren(String paraId) throws DaoException;
	
	public List getNextActivity(String currentActivityId)throws DaoException;
	public ApproveActivityInstance getApproveActivityInstance(String activityId)
	throws DaoException;
	public boolean reconfigActivityPosition(String newParentId,String activityId) throws DaoException;
	/**
	 * 动态选择报送审批人
	 * @param actId
	 * @param approveUsers
	 * @return
	 * @throws DaoException
	 */
	public boolean dynamicAddApproveUsers(String actId,String approveUsers) throws DaoException;

}
